~Paul Bubresazenflar commented on Jul 22, 2010

Dojox Charting Tutorial for XPages Part One

Thanks for this tutorial, I found it very useful!

As an alternative to using computed fields to output client side javascript for the series, you can assign the series in the viewScope and reference them in the output script.

For Example:

chart1.addSeries( "Series 1", #{viewScope.series1} );

You can do your lookups and set the viewScope in the beforePageLoad event so the data is available when you call XSP.addOnLoad(makeChart).